import os
import django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'AnsibleGUI.settings')
django.setup()
from common.PlaybookGen import PlaybookGen
import json

if __name__ == '__main__':
    playbook01 = PlaybookGen(AppId=1)
    playbook01.yaml_generate()
    playbook01.output()
    g = playbook01.groupvars
    e = playbook01.hostlist
    playbook01.RunPlaybook()
